﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using Prism.Mvvm;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views.Setting
{
	// Token: 0x0200002A RID: 42
	[XamlFilePath("Views\\Setting\\SystemSetting.xaml")]
	public class SystemSetting : ContentPage
	{
		// Token: 0x060000A6 RID: 166 RVA: 0x00018589 File Offset: 0x00016789
		public SystemSetting()
		{
			this.InitializeComponent();
		}

		// Token: 0x060000A7 RID: 167 RVA: 0x00018598 File Offset: 0x00016798
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(SystemSetting).GetTypeInfo().Assembly.GetName(), "Views/Setting/SystemSetting.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			Label label = new Label();
			StackLayout stackLayout = new StackLayout();
			Label label2 = new Label();
			BindingExtension bindingExtension = new BindingExtension();
			Switch @switch = new Switch();
			Label label3 = new Label();
			BindingExtension bindingExtension2 = new BindingExtension();
			Switch switch2 = new Switch();
			StackLayout stackLayout2 = new StackLayout();
			Label label4 = new Label();
			BindingExtension bindingExtension3 = new BindingExtension();
			TimePicker timePicker = new TimePicker();
			StackLayout stackLayout3 = new StackLayout();
			Label label5 = new Label();
			BindingExtension bindingExtension4 = new BindingExtension();
			Switch switch3 = new Switch();
			StackLayout stackLayout4 = new StackLayout();
			Label label6 = new Label();
			BindingExtension bindingExtension5 = new BindingExtension();
			Entry entry = new Entry();
			Label label7 = new Label();
			StackLayout stackLayout5 = new StackLayout();
			StackLayout stackLayout6 = new StackLayout();
			Frame frame = new Frame();
			Label label8 = new Label();
			StackLayout stackLayout7 = new StackLayout();
			Label label9 = new Label();
			BindingExtension bindingExtension6 = new BindingExtension();
			Entry entry2 = new Entry();
			Label label10 = new Label();
			BindingExtension bindingExtension7 = new BindingExtension();
			Entry entry3 = new Entry();
			StackLayout stackLayout8 = new StackLayout();
			Label label11 = new Label();
			BindingExtension bindingExtension8 = new BindingExtension();
			Entry entry4 = new Entry();
			Label label12 = new Label();
			BindingExtension bindingExtension9 = new BindingExtension();
			Entry entry5 = new Entry();
			StackLayout stackLayout9 = new StackLayout();
			Label label13 = new Label();
			StackLayout stackLayout10 = new StackLayout();
			Frame frame2 = new Frame();
			Label label14 = new Label();
			StackLayout stackLayout11 = new StackLayout();
			Label label15 = new Label();
			BindingExtension bindingExtension10 = new BindingExtension();
			Switch switch4 = new Switch();
			Label label16 = new Label();
			StackLayout stackLayout12 = new StackLayout();
			Label label17 = new Label();
			BindingExtension bindingExtension11 = new BindingExtension();
			Switch switch5 = new Switch();
			Label label18 = new Label();
			StackLayout stackLayout13 = new StackLayout();
			Label label19 = new Label();
			BindingExtension bindingExtension12 = new BindingExtension();
			Switch switch6 = new Switch();
			Label label20 = new Label();
			StackLayout stackLayout14 = new StackLayout();
			StackLayout stackLayout15 = new StackLayout();
			Frame frame3 = new Frame();
			Label label21 = new Label();
			StackLayout stackLayout16 = new StackLayout();
			Label label22 = new Label();
			BindingExtension bindingExtension13 = new BindingExtension();
			Switch switch7 = new Switch();
			StackLayout stackLayout17 = new StackLayout();
			Label label23 = new Label();
			BindingExtension bindingExtension14 = new BindingExtension();
			Switch switch8 = new Switch();
			BindingExtension bindingExtension15 = new BindingExtension();
			BindingExtension bindingExtension16 = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
			Label label24 = new Label();
			StackLayout stackLayout18 = new StackLayout();
			StackLayout stackLayout19 = new StackLayout();
			Frame frame4 = new Frame();
			Label label25 = new Label();
			BindingExtension bindingExtension17 = new BindingExtension();
			Switch switch9 = new Switch();
			StackLayout stackLayout20 = new StackLayout();
			Label label26 = new Label();
			Label label27 = new Label();
			BindingExtension bindingExtension18 = new BindingExtension();
			Entry entry6 = new Entry();
			Label label28 = new Label();
			BindingExtension bindingExtension19 = new BindingExtension();
			Entry entry7 = new Entry();
			Label label29 = new Label();
			StackLayout stackLayout21 = new StackLayout();
			Label label30 = new Label();
			BindingExtension bindingExtension20 = new BindingExtension();
			Switch switch10 = new Switch();
			StackLayout stackLayout22 = new StackLayout();
			StackLayout stackLayout23 = new StackLayout();
			Frame frame5 = new Frame();
			StackLayout stackLayout24 = new StackLayout();
			ScrollView scrollView = new ScrollView();
			NameScope nameScope = new NameScope();
			NameScope.SetNameScope(this, nameScope);
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			this.SetValue(Page.TitleProperty, "系统设置");
			frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame.SetValue(View.MarginProperty, new Thickness(3.0, 3.0, 3.0, 0.0));
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label.SetValue(Label.TextProperty, "常规");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout.Children.Add(label);
			stackLayout6.Children.Add(stackLayout);
			stackLayout2.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label2.SetValue(Label.TextProperty, "自动完成任务：");
			label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout2.Children.Add(label2);
			@switch.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension.Path = "Game.AwardTask.Enabled";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			@switch.SetBinding(Switch.IsToggledProperty, binding);
			stackLayout2.Children.Add(@switch);
			label3.SetValue(Label.TextProperty, "遇潜艇换单横：");
			label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label3.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
			stackLayout2.Children.Add(label3);
			switch2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension2.Path = "Game.GlobalConfig.AutoOneColume";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			switch2.SetBinding(Switch.IsToggledProperty, binding2);
			stackLayout2.Children.Add(switch2);
			stackLayout6.Children.Add(stackLayout2);
			stackLayout3.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label4.SetValue(Label.TextProperty, "定时重启（刷新任务）:");
			label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout3.Children.Add(label4);
			bindingExtension3.Path = "Game.GlobalConfig.ResetTime";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			timePicker.SetBinding(TimePicker.TimeProperty, binding3);
			timePicker.SetValue(VisualElement.WidthRequestProperty, 75.0);
			stackLayout3.Children.Add(timePicker);
			stackLayout6.Children.Add(stackLayout3);
			stackLayout4.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label5.SetValue(Label.TextProperty, "启动时默认开启强制后台（背景音乐）:");
			label5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout4.Children.Add(label5);
			switch3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension4.Path = "Game.GlobalConfig.MusicStart";
			BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
			switch3.SetBinding(Switch.IsToggledProperty, binding4);
			stackLayout4.Children.Add(switch3);
			stackLayout6.Children.Add(stackLayout4);
			label6.SetValue(Label.TextProperty, "强制锁定名单,名称模糊匹配,使用|分隔");
			label6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout6.Children.Add(label6);
			bindingExtension5.Path = "Game.GlobalConfig.LockWhitelist";
			BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
			entry.SetBinding(Entry.TextProperty, binding5);
			entry.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
			stackLayout6.Children.Add(entry);
			stackLayout5.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label7.SetValue(Label.TextProperty, "注意：|为英文符号中的分隔符非中文字符");
			BindableObject bindableObject = label7;
			BindableProperty fontSizeProperty = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
			string value = "12";
			XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
			Type typeFromHandle = typeof(IProvideValueTarget);
			object[] array = new object[0 + 7];
			array[0] = label7;
			array[1] = stackLayout5;
			array[2] = stackLayout6;
			array[3] = frame;
			array[4] = stackLayout24;
			array[5] = scrollView;
			array[6] = this;
			object service;
			xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, Label.FontSizeProperty, nameScope));
			xamlServiceProvider.Add(typeof(IReferenceProvider), service);
			Type typeFromHandle2 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
			xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(32, 57)));
			bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
			label7.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout5.Children.Add(label7);
			stackLayout6.Children.Add(stackLayout5);
			frame.SetValue(ContentView.ContentProperty, stackLayout6);
			stackLayout24.Children.Add(frame);
			frame2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame2.SetValue(View.MarginProperty, new Thickness(3.0, 0.0));
			stackLayout7.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label8.SetValue(Label.TextProperty, "战斗");
			label8.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout7.Children.Add(label8);
			stackLayout10.Children.Add(stackLayout7);
			stackLayout8.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label9.SetValue(Label.TextProperty, "战斗时长(秒)：");
			label9.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout8.Children.Add(label9);
			bindingExtension6.Path = "Game.GlobalConfig.MinSeconds";
			BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
			entry2.SetBinding(Entry.TextProperty, binding6);
			entry2.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			entry2.SetValue(VisualElement.WidthRequestProperty, 70.0);
			entry2.SetValue(InputView.KeyboardProperty, new KeyboardTypeConverter().ConvertFromInvariantString("Numeric"));
			stackLayout8.Children.Add(entry2);
			label10.SetValue(Label.TextProperty, "~");
			label10.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout8.Children.Add(label10);
			bindingExtension7.Path = "Game.GlobalConfig.MaxSeconds";
			BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
			entry3.SetBinding(Entry.TextProperty, binding7);
			entry3.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			entry3.SetValue(VisualElement.WidthRequestProperty, 70.0);
			entry3.SetValue(InputView.KeyboardProperty, new KeyboardTypeConverter().ConvertFromInvariantString("Numeric"));
			stackLayout8.Children.Add(entry3);
			stackLayout10.Children.Add(stackLayout8);
			stackLayout9.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label11.SetValue(Label.TextProperty, "任务间隔(秒)：");
			label11.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout9.Children.Add(label11);
			bindingExtension8.Path = "Game.GlobalConfig.TaskMinDelay";
			BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
			entry4.SetBinding(Entry.TextProperty, binding8);
			entry4.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			entry4.SetValue(VisualElement.WidthRequestProperty, 70.0);
			entry4.SetValue(InputView.KeyboardProperty, new KeyboardTypeConverter().ConvertFromInvariantString("Numeric"));
			stackLayout9.Children.Add(entry4);
			label12.SetValue(Label.TextProperty, "~");
			label12.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout9.Children.Add(label12);
			bindingExtension9.Path = "Game.GlobalConfig.TaskMaxDelay";
			BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
			entry5.SetBinding(Entry.TextProperty, binding9);
			entry5.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			entry5.SetValue(VisualElement.WidthRequestProperty, 70.0);
			entry5.SetValue(InputView.KeyboardProperty, new KeyboardTypeConverter().ConvertFromInvariantString("Numeric"));
			stackLayout9.Children.Add(entry5);
			stackLayout10.Children.Add(stackLayout9);
			label13.SetValue(Label.TextProperty, "建议值： 战斗(10-60之间)， 任务(5-20之间)，间隔太小将有风险");
			BindableObject bindableObject2 = label13;
			BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
			string value2 = "12";
			XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
			Type typeFromHandle3 = typeof(IProvideValueTarget);
			object[] array2 = new object[0 + 6];
			array2[0] = label13;
			array2[1] = stackLayout10;
			array2[2] = frame2;
			array2[3] = stackLayout24;
			array2[4] = scrollView;
			array2[5] = this;
			object service2;
			xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
			xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
			Type typeFromHandle4 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
			xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(54, 73)));
			bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
			label13.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout10.Children.Add(label13);
			frame2.SetValue(ContentView.ContentProperty, stackLayout10);
			stackLayout24.Children.Add(frame2);
			frame3.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame3.SetValue(View.MarginProperty, new Thickness(3.0, 0.0));
			stackLayout11.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label14.SetValue(Label.TextProperty, "安全");
			label14.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout11.Children.Add(label14);
			stackLayout15.Children.Add(stackLayout11);
			stackLayout12.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label15.SetValue(Label.TextProperty, "上榜监控:");
			label15.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout12.Children.Add(label15);
			switch4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension10.Path = "Game.GlobalConfig.Rank";
			BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
			switch4.SetBinding(Switch.IsToggledProperty, binding10);
			stackLayout12.Children.Add(switch4);
			label16.SetValue(Label.TextProperty, "开启后上榜船只将不能出征");
			BindableObject bindableObject3 = label16;
			BindableProperty fontSizeProperty3 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
			string value3 = "12";
			XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
			Type typeFromHandle5 = typeof(IProvideValueTarget);
			object[] array3 = new object[0 + 7];
			array3[0] = label16;
			array3[1] = stackLayout12;
			array3[2] = stackLayout15;
			array3[3] = frame3;
			array3[4] = stackLayout24;
			array3[5] = scrollView;
			array3[6] = this;
			object service3;
			xamlServiceProvider3.Add(typeFromHandle5, service3 = new SimpleValueTargetProvider(array3, Label.FontSizeProperty, nameScope));
			xamlServiceProvider3.Add(typeof(IReferenceProvider), service3);
			Type typeFromHandle6 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();
			xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(65, 46)));
			bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
			label16.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout12.Children.Add(label16);
			stackLayout15.Children.Add(stackLayout12);
			stackLayout13.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label17.SetValue(Label.TextProperty, "夜间休眠:");
			label17.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout13.Children.Add(label17);
			switch5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension11.Path = "Game.GlobalConfig.AutoSleep";
			BindingBase binding11 = ((IMarkupExtension<BindingBase>)bindingExtension11).ProvideValue(null);
			switch5.SetBinding(Switch.IsToggledProperty, binding11);
			stackLayout13.Children.Add(switch5);
			label18.SetValue(Label.TextProperty, "开启后每天0到九点（随机）将休眠");
			BindableObject bindableObject4 = label18;
			BindableProperty fontSizeProperty4 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter4 = new FontSizeConverter();
			string value4 = "12";
			XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
			Type typeFromHandle7 = typeof(IProvideValueTarget);
			object[] array4 = new object[0 + 7];
			array4[0] = label18;
			array4[1] = stackLayout13;
			array4[2] = stackLayout15;
			array4[3] = frame3;
			array4[4] = stackLayout24;
			array4[5] = scrollView;
			array4[6] = this;
			object service4;
			xamlServiceProvider4.Add(typeFromHandle7, service4 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
			xamlServiceProvider4.Add(typeof(IReferenceProvider), service4);
			Type typeFromHandle8 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();
			xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(70, 50)));
			bindableObject4.SetValue(fontSizeProperty4, extendedTypeConverter4.ConvertFromInvariantString(value4, xamlServiceProvider4));
			label18.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout13.Children.Add(label18);
			stackLayout15.Children.Add(stackLayout13);
			stackLayout14.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label19.SetValue(Label.TextProperty, "出征随机次数暂停:");
			label19.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout14.Children.Add(label19);
			switch6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension12.Path = "Game.GlobalConfig.RandomSleep";
			BindingBase binding12 = ((IMarkupExtension<BindingBase>)bindingExtension12).ProvideValue(null);
			switch6.SetBinding(Switch.IsToggledProperty, binding12);
			stackLayout14.Children.Add(switch6);
			label20.SetValue(Label.TextProperty, "开启后出征每隔一段时间会暂停一小会");
			BindableObject bindableObject5 = label20;
			BindableProperty fontSizeProperty5 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter5 = new FontSizeConverter();
			string value5 = "12";
			XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
			Type typeFromHandle9 = typeof(IProvideValueTarget);
			object[] array5 = new object[0 + 7];
			array5[0] = label20;
			array5[1] = stackLayout14;
			array5[2] = stackLayout15;
			array5[3] = frame3;
			array5[4] = stackLayout24;
			array5[5] = scrollView;
			array5[6] = this;
			object service5;
			xamlServiceProvider5.Add(typeFromHandle9, service5 = new SimpleValueTargetProvider(array5, Label.FontSizeProperty, nameScope));
			xamlServiceProvider5.Add(typeof(IReferenceProvider), service5);
			Type typeFromHandle10 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();
			xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver5.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(75, 51)));
			bindableObject5.SetValue(fontSizeProperty5, extendedTypeConverter5.ConvertFromInvariantString(value5, xamlServiceProvider5));
			label20.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout14.Children.Add(label20);
			stackLayout15.Children.Add(stackLayout14);
			frame3.SetValue(ContentView.ContentProperty, stackLayout15);
			stackLayout24.Children.Add(frame3);
			frame4.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame4.SetValue(View.MarginProperty, new Thickness(3.0, 0.0));
			stackLayout16.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label21.SetValue(Label.TextProperty, "后宫");
			label21.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout16.Children.Add(label21);
			stackLayout19.Children.Add(stackLayout16);
			stackLayout17.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label22.SetValue(Label.TextProperty, "自动更换秘书舰:");
			label22.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout17.Children.Add(label22);
			switch7.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension13.Path = "Game.GlobalConfig.AutoSecretary";
			BindingBase binding13 = ((IMarkupExtension<BindingBase>)bindingExtension13).ProvideValue(null);
			switch7.SetBinding(Switch.IsToggledProperty, binding13);
			stackLayout17.Children.Add(switch7);
			stackLayout19.Children.Add(stackLayout17);
			stackLayout18.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label23.SetValue(Label.TextProperty, "出征前吃饱:");
			label23.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout18.Children.Add(label23);
			switch8.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension14.Path = "Game.GlobalConfig.Eat";
			BindingBase binding14 = ((IMarkupExtension<BindingBase>)bindingExtension14).ProvideValue(null);
			switch8.SetBinding(Switch.IsToggledProperty, binding14);
			stackLayout18.Children.Add(switch8);
			bindingExtension15.Path = "Game.GlobalConfig.EatTypeText";
			bindingExtension15.StringFormat = "食物类型: {0}";
			BindingBase binding15 = ((IMarkupExtension<BindingBase>)bindingExtension15).ProvideValue(null);
			label24.SetBinding(Label.TextProperty, binding15);
			label24.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label24.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			bindingExtension16.Path = "EatTypeCommand";
			BindingBase binding16 = ((IMarkupExtension<BindingBase>)bindingExtension16).ProvideValue(null);
			tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding16);
			label24.GestureRecognizers.Add(tapGestureRecognizer);
			stackLayout18.Children.Add(label24);
			stackLayout19.Children.Add(stackLayout18);
			frame4.SetValue(ContentView.ContentProperty, stackLayout19);
			stackLayout24.Children.Add(frame4);
			frame5.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame5.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 3.0, 3.0));
			stackLayout20.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label25.SetValue(Label.TextProperty, "修理");
			label25.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout20.Children.Add(label25);
			switch9.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension17.Path = "Game.RepairTask.Enabled";
			BindingBase binding17 = ((IMarkupExtension<BindingBase>)bindingExtension17).ProvideValue(null);
			switch9.SetBinding(Switch.IsToggledProperty, binding17);
			stackLayout20.Children.Add(switch9);
			stackLayout23.Children.Add(stackLayout20);
			label26.SetValue(Label.TextProperty, "说明：自动修理不在舰队，修理时间小于阈值的船。默认优先修理时间长的。");
			BindableObject bindableObject6 = label26;
			BindableProperty fontSizeProperty6 = Label.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter6 = new FontSizeConverter();
			string value6 = "12";
			XamlServiceProvider xamlServiceProvider6 = new XamlServiceProvider();
			Type typeFromHandle11 = typeof(IProvideValueTarget);
			object[] array6 = new object[0 + 6];
			array6[0] = label26;
			array6[1] = stackLayout23;
			array6[2] = frame5;
			array6[3] = stackLayout24;
			array6[4] = scrollView;
			array6[5] = this;
			object service6;
			xamlServiceProvider6.Add(typeFromHandle11, service6 = new SimpleValueTargetProvider(array6, Label.FontSizeProperty, nameScope));
			xamlServiceProvider6.Add(typeof(IReferenceProvider), service6);
			Type typeFromHandle12 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver6 = new XmlNamespaceResolver();
			xmlNamespaceResolver6.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver6.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver6.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider6.Add(typeFromHandle12, new XamlTypeResolver(xmlNamespaceResolver6, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(105, 70)));
			bindableObject6.SetValue(fontSizeProperty6, extendedTypeConverter6.ConvertFromInvariantString(value6, xamlServiceProvider6));
			label26.SetValue(Label.TextColorProperty, Color.RoyalBlue);
			stackLayout23.Children.Add(label26);
			stackLayout21.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label27.SetValue(Label.TextProperty, "自动修理阈值：");
			label27.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout21.Children.Add(label27);
			bindingExtension18.Path = "Game.RepairTask.MinHours";
			BindingBase binding18 = ((IMarkupExtension<BindingBase>)bindingExtension18).ProvideValue(null);
			entry6.SetBinding(Entry.TextProperty, binding18);
			entry6.SetValue(VisualElement.WidthRequestProperty, 50.0);
			BindableObject bindableObject7 = entry6;
			BindableProperty fontSizeProperty7 = Entry.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter7 = new FontSizeConverter();
			string value7 = "15";
			XamlServiceProvider xamlServiceProvider7 = new XamlServiceProvider();
			Type typeFromHandle13 = typeof(IProvideValueTarget);
			object[] array7 = new object[0 + 7];
			array7[0] = entry6;
			array7[1] = stackLayout21;
			array7[2] = stackLayout23;
			array7[3] = frame5;
			array7[4] = stackLayout24;
			array7[5] = scrollView;
			array7[6] = this;
			object service7;
			xamlServiceProvider7.Add(typeFromHandle13, service7 = new SimpleValueTargetProvider(array7, Entry.FontSizeProperty, nameScope));
			xamlServiceProvider7.Add(typeof(IReferenceProvider), service7);
			Type typeFromHandle14 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver7 = new XmlNamespaceResolver();
			xmlNamespaceResolver7.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver7.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver7.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider7.Add(typeFromHandle14, new XamlTypeResolver(xmlNamespaceResolver7, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider7.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(108, 97)));
			bindableObject7.SetValue(fontSizeProperty7, extendedTypeConverter7.ConvertFromInvariantString(value7, xamlServiceProvider7));
			entry6.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			stackLayout21.Children.Add(entry6);
			label28.SetValue(Label.TextProperty, "小时");
			label28.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout21.Children.Add(label28);
			bindingExtension19.Path = "Game.RepairTask.MinMinutes";
			BindingBase binding19 = ((IMarkupExtension<BindingBase>)bindingExtension19).ProvideValue(null);
			entry7.SetBinding(Entry.TextProperty, binding19);
			entry7.SetValue(VisualElement.WidthRequestProperty, 50.0);
			BindableObject bindableObject8 = entry7;
			BindableProperty fontSizeProperty8 = Entry.FontSizeProperty;
			IExtendedTypeConverter extendedTypeConverter8 = new FontSizeConverter();
			string value8 = "15";
			XamlServiceProvider xamlServiceProvider8 = new XamlServiceProvider();
			Type typeFromHandle15 = typeof(IProvideValueTarget);
			object[] array8 = new object[0 + 7];
			array8[0] = entry7;
			array8[1] = stackLayout21;
			array8[2] = stackLayout23;
			array8[3] = frame5;
			array8[4] = stackLayout24;
			array8[5] = scrollView;
			array8[6] = this;
			object service8;
			xamlServiceProvider8.Add(typeFromHandle15, service8 = new SimpleValueTargetProvider(array8, Entry.FontSizeProperty, nameScope));
			xamlServiceProvider8.Add(typeof(IReferenceProvider), service8);
			Type typeFromHandle16 = typeof(IXamlTypeResolver);
			XmlNamespaceResolver xmlNamespaceResolver8 = new XmlNamespaceResolver();
			xmlNamespaceResolver8.Add("", "http://xamarin.com/schemas/2014/forms");
			xmlNamespaceResolver8.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
			xmlNamespaceResolver8.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
			xamlServiceProvider8.Add(typeFromHandle16, new XamlTypeResolver(xmlNamespaceResolver8, typeof(SystemSetting).GetTypeInfo().Assembly));
			xamlServiceProvider8.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(110, 99)));
			bindableObject8.SetValue(fontSizeProperty8, extendedTypeConverter8.ConvertFromInvariantString(value8, xamlServiceProvider8));
			entry7.SetValue(Entry.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
			entry7.SetValue(View.MarginProperty, new Thickness(10.0, 0.0, 0.0, 0.0));
			stackLayout21.Children.Add(entry7);
			label29.SetValue(Label.TextProperty, "分钟");
			label29.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout21.Children.Add(label29);
			stackLayout23.Children.Add(stackLayout21);
			stackLayout22.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label30.SetValue(Label.TextProperty, "从短时间开始修:");
			label30.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout22.Children.Add(label30);
			bindingExtension20.Path = "Game.RepairTask.RepairOrder";
			BindingBase binding20 = ((IMarkupExtension<BindingBase>)bindingExtension20).ProvideValue(null);
			switch10.SetBinding(Switch.IsToggledProperty, binding20);
			stackLayout22.Children.Add(switch10);
			stackLayout23.Children.Add(stackLayout22);
			frame5.SetValue(ContentView.ContentProperty, stackLayout23);
			stackLayout24.Children.Add(frame5);
			scrollView.Content = stackLayout24;
			this.SetValue(ContentPage.ContentProperty, scrollView);
		}

		// Token: 0x060000A8 RID: 168 RVA: 0x0001A25A File Offset: 0x0001845A
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(SystemSetting));
		}
	}
}
